package grow

import (
	"github.com/hwcer/yyds/context"
	"server/game/model"
)

var db = model.DB()

func Register(i interface{}, name ...string) {
	arr := []string{"grow"}
	if len(name) > 0 {
		arr = append(arr, name...)
	} else {
		arr = append(arr, "%v")
	}

	context.Register(i, arr...)
}
